home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17936 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 KB

  1. Path: ivan.iecc.com!not-for-mail
  2. From: feb6399@osfmail.isc.rit.edu (Frank Barrus)
  3. Newsgroups: comp.lang.c++,comp.compilers
  4. Subject: Re: Parsing C++ headers?
  5. Date: 18 Apr 1996 00:35:27 -0400
  6. Organization: Rochester Institute of Technology, Rochester, NY
  7. Sender: johnl@iecc.com
  8. Approved: compilers@ivan.iecc.com
  9. Message-ID: <96-04-108@comp.compilers>
  10. References: <96-04-033@comp.compilers> <96-04-078@comp.compilers>
  11. NNTP-Posting-Host: localhost.iecc.com
  12. Keywords: C++, parse
  13.  
  14. John Mitchell <104316.1514@CompuServe.COM> writes:
  15. >I want to parse C++ header files, and extract information about the
  16. >contained classes and their interface. ...
  17.  
  18.  
  19. Cleveland A Gibbon  <cag@Cs.Nott.AC.UK> wrote:
  20. >Welcome to your worst nightmare! I have not been able to track down a
  21. >yacc-able grammar for 2 years. The one you mentioned about is very old
  22. >and would need a substantial amount of work to include templates.
  23. >There is a neat C++ grammar that is written in C/C++, hence portable
  24. >to any platform with a C/C++ compiler.
  25.  
  26. I've been working on exactly this sort of thing, and although the yacc
  27. grammer by itself relies on a few tricks, it provides an interface
  28. class (CParse) that should provide all the info you need to pull out
  29. class info or to even make a C++ Interpreter or compiler.
  30.  
  31. Check out my homepage (http://www.csh.rit.edu/~shaggy) in the coming
  32. months.  There's some basic info on it up there right now, but it will
  33. be about a month before I get the first release available.  I'm using
  34. it as the core for all kinds of things, including dynamic extensions
  35. to C++ as well as a C++ interpretive command shell.
  36.  
  37.     - Frank
  38. --
  39. Frank "Shaggy" Barrus: feb6399@osfmail.isc.rit.edu, shaggy@csh.rit.edu
  40. http://www.csh.rit.edu/~shaggy
  41. --
  42. Send compilers articles to compilers@iecc.com,
  43. meta-mail to compilers-request@iecc.com.
  44.